#include "myqthread.h"
#include <unistd.h>
MyQthread::MyQthread(QObject *parent) : QThread(parent)
{

}

void MyQthread::run()
{
    int i=0;

    while (1) {
        qDebug()<<i;
        emit threadSignal(i++);
        sleep(1);
        if(i>10) break;
    }
}
